﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DBSourceToolsLib.Suggestions
{
    public class Suggestion
    {
        private string m_Name;

        public string Name
        {
            get { return m_Name; }
            set { m_Name = value; }
        }
        private string m_Description = "";

        public string Description
        {
            get { return m_Description; }
            set { m_Description = value; }
        }
        private int m_ImageIdx;

        public int ImageIdx
        {
            get { return m_ImageIdx; }
            set { m_ImageIdx = value; }
        }

        public Suggestion()
        {
        }

        public Suggestion(string strName, DBSourceToolsLib.Composite.DBCompositeType iType)
        {
            m_Name = strName;
            switch (iType)
            {
                case Composite.DBCompositeType.Field:
                    m_ImageIdx = 0;
                    break;
                case Composite.DBCompositeType.Table:
                    m_ImageIdx = 1;
                    break;
                case Composite.DBCompositeType.View:
                    m_ImageIdx = 2;
                    break;
                
            }
            
        }
    }
}
